<!DOCTYPE html>
<html lang="zh-cn">

<head>
  <title>喀什理工职业技术学院</title>
  <meta name="keywords" content="">
  <meta name="description" content="">
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <meta name="renderer" content="webkit">

  <!-- bootstrap -->
  <link rel="stylesheet" href="/wcm.files/common/bootstrap-4.6.2-dist/css/bootstrap.min.css">

  <!-- swiper -->
  <link rel="stylesheet" href="/wcm.files/common/swiper/swiper.min.css">
  <!-- hover -->
  <link rel="stylesheet" href="/wcm.files/common/css/hover.css">
  <link rel="stylesheet" type="text/css" href="//at.alicdn.com/t/c/font_4912815_m6pqh46q8cl.css" />
  <link rel="stylesheet" href="/static/css/index.css">
  <link rel="stylesheet" href="/wcm.files/font/bootstrap-icons.min.css">
  <script src="/wcm.files/js/jqueryN.js"></script>
  <script src="/wcm.files/common/swiper/swiper.min.js"></script>
  <script src="/wcm.files/common/js/jquery.SuperSlide.2.1.3.js"></script>
  <script src="/wcm.files/common/bootstrap-4.6.2-dist/js/bootstrap.bundle.min.js"></script>

  <script src="/static/js/index.js"></script>
  <script src="/wcm.files/common/js/vue.min.js"></script>
</head>

<body id="homePage">
  <div id="header"></div>
  <div id="body">

    <div class="banner">
      <img src="/static/img/banner.png" alt="">
    </div>
    <div class="box_01">
      <div class="container">
        <div class="ty-hd-01">
          <a href="#" class="hd-1">
            <img src="/static/img/xydt.png" alt="">
          </a>
          <a href="./lby.html" class="hd-more">——— 更多 +</a>
        </div>
        <div class="bd d-flex flex-wrap">
          <div class="box_02_02">
            <div class="m-xinwen_list1">
              <a href="nry.html" class="xinwen_list_item" v-for="(item, index) in 4" :key="index"
                :class="{'on': currentIndex === index}" @mouseenter="handleMouseEnter(index)">
                <div class="date">
                  <div class="d">02</div>
                  <div class="ym">2025-05</div>
                </div>
                <div class="text">
                  <div class="title text-overflow">赓续红色血脉 传承奋斗精神——喀什理工职业技术学...</div>
                  <div class="desc">3月14日，由喀什新能源汽车产业技术研究院主办的“喀什经济开发区智能网联示范区项目签约仪式”在喀什经济开发区管委会举行...</div>
                </div>
              </a>
            </div>
          </div>

          <div class="box_02_02 m-lb">
            <img class="xydtbg" src="/static/img/xydtbg.png" alt="">
            <div class="lb-02-wrap">
              <div id="lb_02" class="swiper-container radius">
                <div class="swiper-wrapper">
                  <div class="swiper-slide" v-for="(item, index) in limitedTpxw" :key="index">
                    <img src="/static/img/lb2.png" alt="">
                  </div>
                </div>

              </div>
              <!-- 如果需要分页器 -->
              <div class="swiper-pagination swiper-container-myColor"></div>
            </div>
          </div>
        </div>
      </div>
    </div>

    <div class="box_02">
      <div class="container">
        <div class="row">
          <div class="left col-6">
            <div class="ty-hd-01">
              <a href="#" class="hd-1">
                <img src="/static/img/hktx.png" alt="">
              </a>
              <a href="./lby.html" class="hd-more">——— 更多 +</a>
            </div>

            <div class="bd">
              <div id="lb_03" class="swiper-container radius">
                <div class="swiper-wrapper">
                  <div class="swiper-slide" v-for="(item, index) in limitedMtbd" :key="index">
                    <div class="pic">
                      <img src="/static/img/lb2.png" alt="">
                    </div>
                    <a class="text" :href="item.link || '#'">
                      <div class="slide-title text-overflow">{{ item.title }}</div>
                      <div class="slide-desc">{{ item.desc || '暂无描述' }}</div>
                      <div class="slide-date">2024.12.10</div>
                    </a>

                  </div>
                </div>
                <!-- 如果需要分页器 -->
                <div class="swiper-pagination swiper-container-myColor"></div>
              </div>

            </div>
          </div>
          <div class="right col-6">
            <div class="ty-hd-01">
              <a href="#" class="hd-1">
                <img src="/static/img/tzgg.png" alt="">
              </a>
              <a href="./lby.html" class="hd-more">——— 更多 +</a>
            </div>

            <div class="bd">
              <div class="m-xinwen_list1-1">
                <a href="nry.html" class="xinwen_list_item" v-for="(item, index) in limitedGzdt" :key="index">
                  <div class="date">
                    <div class="d">{{ item.date.split('-')[2] }}</div>
                    <div class="ym">{{ item.date.split('-')[0] }}-{{ item.date.split('-')[1] }}</div>
                  </div>
                  <div class="text">
                    <div class="title text-overflow">{{ item.title }}</div>
                    <!-- <div class="desc">{{ item.desc }}</div> -->
                  </div>
                </a>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>

    <div class="box_03">
      <div class="container">

        <div class="ty-hd-01">
          <a href="#" class="hd-1">
            <img src="/static/img/jydt.png" alt="">
          </a>
          <a href="./lby.html" class="hd-more">——— 更多 +</a>
        </div>
        <div class="bd ">
          <div class="row">
            <div class="col-3 m-xinwen_list1-2">
              <a class="item" href="nry.html" v-for="(item, index) in 3" :key="index" class="slide-title text-overflow">
                <div class="title">书香润心田，知识共成长——沪喀图书漂流平台正式启动</div>
                <div class="date">2024.12.10</div>
              </a>
            </div>
            <div class="col-6">
              <div id="lb_04" class="swiper-container radius">
                <div class="swiper-wrapper">
                  <div class="swiper-slide" v-for="(item, index) in limitedMtbd" :key="index">
                    <div class="pic">
                      <img src="/static/img/lb3.png" alt="">
                    </div>
                  </div>
                </div>
                <!-- 如果需要分页器 -->
                <div class="swiper-pagination swiper-container-myColor"></div>
              </div>

            </div>
            <div class="col-3 m-xinwen_list1-2">
              <a class="item" href="nry.html" v-for="(item, index) in 3" :key="index" class="slide-title text-overflow">
                <div class="title">书香润心田，知识共成长——沪喀图书漂流平台正式启动</div>
                <div class="date">2024.12.10</div>
              </a>
            </div>
          </div>
        </div>

      </div>
    </div>


    <div class="m-xysh">
      <div class="container">
        <div class="ty-hd-01">
          <a href="#" class="hd-1">
            <img src="/static/img/xysh.png" alt="">
          </a>
          <a href="./lby.html" class="hd-more">——— 更多 +</a>
        </div>

        <div class="bd row">
          <div class="left col-6">
            <div id="lb_xysh" class="swiper-container radius">
              <div class="swiper-wrapper">
                <div class="swiper-slide" v-for="(item, index) in limitedMtbd" :key="index">
                  <div class="pic">
                    <img src="/static/img/lb2.png" alt="">
                  </div>
                  <a class="text" :href="item.link || '#'">
                    <div class="slide-title text-overflow">{{ item.title }}</div>
                    <div class="slide-date">2024.12.10</div>
                  </a>
                </div>
              </div>
              <!-- 如果需要分页器 -->
              <div class="swiper-pagination swiper-container-myColor"></div>
            </div>

          </div>
          <div class="right col-6">
            <div class="tabs">
              <div class="tab-item active"><span>我的大学</span></div>
              <div class="tab-item"><span>我的课堂</span></div>
              <div class="tab-item"><span>我的技能</span></div>
              <div class="tab-item"><span>我的生活</span></div>
              <div class="tab-item"><span>我的假期</span></div>
            </div>
            <div class="swiper-container">
              <div class="swiper-wrapper">
                <div class="swiper-slide">
                  <div class="m-xinwen_list1-3">
                    <a class="item" href="nry.html" v-for="(item, index) in 3" :key="index">
                      <div class="pic"><img src="/static/img/lb3.png" alt=""></div>
                      <div class="title text-overflow">喀什理工职业技术学院：2025年元旦文艺晚会精彩纷呈</div>
                      <div class="desc">为进一步加强学生社团建设管理，繁荣校园文化，培育新时代高素质技术技能人才，2025年3月20日学院隆重召开成立...</div>
                      <div class="date">2024.12.10</div>
                    </a>
                  </div>
                </div>
                <div class="swiper-slide">
                  <div class="m-xinwen_list1-3">
                    <a class="item" href="nry.html" v-for="(item, index) in 3" :key="index">
                      <div class="pic"><img src="/static/img/lb3.png" alt=""></div>
                      <div class="title text-overflow">喀什理工职业技术学院：2025年元旦文艺晚会精彩纷呈</div>
                      <div class="desc">为进一步加强学生社团建设管理，繁荣校园文化，培育新时代高素质技术技能人才，2025年3月20日学院隆重召开成立...</div>
                      <div class="date">2024.12.10</div>
                    </a>
                  </div>
                </div>
                <div class="swiper-slide">
                  <div class="m-xinwen_list1-3">
                    <a class="item" href="nry.html" v-for="(item, index) in 3" :key="index">
                      <div class="pic"><img src="/static/img/lb3.png" alt=""></div>
                      <div class="title text-overflow">喀什理工职业技术学院：2025年元旦文艺晚会精彩纷呈</div>
                      <div class="desc">为进一步加强学生社团建设管理，繁荣校园文化，培育新时代高素质技术技能人才，2025年3月20日学院隆重召开成立...</div>
                      <div class="date">2024.12.10</div>
                    </a>
                  </div>
                </div>
                <div class="swiper-slide">
                  <div class="m-xinwen_list1-3">
                    <a class="item" href="nry.html" v-for="(item, index) in 3" :key="index">
                      <div class="pic"><img src="/static/img/lb3.png" alt=""></div>
                      <div class="title text-overflow">喀什理工职业技术学院：2025年元旦文艺晚会精彩纷呈</div>
                      <div class="desc">为进一步加强学生社团建设管理，繁荣校园文化，培育新时代高素质技术技能人才，2025年3月20日学院隆重召开成立...</div>
                      <div class="date">2024.12.10</div>
                    </a>
                  </div>
                </div>
                <div class="swiper-slide">
                  <div class="m-xinwen_list1-3">
                    <a class="item" href="nry.html" v-for="(item, index) in 3" :key="index">
                      <div class="pic"><img src="/static/img/lb3.png" alt=""></div>
                      <div class="title text-overflow">喀什理工职业技术学院：2025年元旦文艺晚会精彩纷呈</div>
                      <div class="desc">为进一步加强学生社团建设管理，繁荣校园文化，培育新时代高素质技术技能人才，2025年3月20日学院隆重召开成立...</div>
                      <div class="date">2024.12.10</div>
                    </a>
                  </div>
                </div>

              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="m-ztlm">
      <div class="ty-hd-01">
        <a href="#" class="hd-1">
          <img src="/static/img/ztlm.png" alt="">
        </a>
        <!-- <a href="./lby.html" class="hd-more">——— 更多 +</a> -->
      </div>
      <div class="bd">
        <div class="swiper-container">
          <div class="swiper-wrapper">
            <div class="swiper-slide">
              <img src="/static/img/zt1.jpg" alt="">
            </div>
            <div class="swiper-slide">
              <img src="/static/img/zt3.png" alt="">
            </div>
            <div class="swiper-slide">
              <img src="/static/img/zt2.jpg" alt="">
            </div>

          </div>
          <!-- Add Pagination -->
          <div class="swiper-pagination"></div>
          <!-- Add Arrows -->
          <div class="swiper-button-next"></div>
          <div class="swiper-button-prev"></div>
        </div>
        <div class="icons">
          <a class="icons-item" href="">
            <div class="icon"><i class="iconfont icon-fuwudating"></i></div>
            <div class="text">一站式服务大厅</div>
          </a>
          <a class="icons-item" href="">
            <div class="icon"><i class="iconfont icon-vrquanjing"></i></div>
            <div class="text">VR云校园</div>
          </a>
          <a class="icons-item" href="">
            <div class="icon"><i class="iconfont icon-youxiang"></i></div>
            <div class="text">校园邮箱</div>
          </a>
          <a class="icons-item" href="">
            <div class="icon"><i class="iconfont icon-yaoqingdaoshi"></i></div>
            <div class="text">校长邮箱</div>
          </a>
          <a class="icons-item" href="">
            <div class="icon"><i class="iconfont icon-zhaosheng-zhaoshengjihua"></i></div>
            <div class="text">招生专栏</div>
          </a>
          <a class="icons-item" href="">
            <div class="icon"><i class="iconfont icon-jiuzhu"></i></div>
            <div class="text">援疆专栏</div>
          </a>
          <a class="icons-item" href="">
            <div class="icon"><i class="iconfont icon-boshimao-L"></i></div>
            <div class="text">智慧职教</div>
          </a>
        </div>
      </div>
    </div>
  </div>


  <div id="footer"></div>
</body>

</html>

<script>
  $("#footer").load("./footer.html");
  $("#header").load("./header.html");
</script>
<script>
  new Vue({
    el: '#body',
    data: {
      categories: {
        tpxw: [], // 图片新闻数据
        gzdt: [], // 工作动态数据
        tzgg: [], // 通知公告数据
        kjcx: [],  // 科技创新数据
        mtbd: [], // 添加媒体报道数据
        hktx: [], // 添加媒体报道数据

      },
      currentIndex: 0 // 用于记录当前悬停的索引，初始值为-1表示没有悬停任何元素
    },
    mounted () {
      this.fetchData();
    },
    methods: {
      fetchData () {
        $.ajax({
          url: './data.json', // 确保路径正确
          method: 'GET',
          dataType: 'json',
          success: (data) => {
            console.log('成功获取数据:', data);
            this.categories.tpxw = data.tpxw || [];
            this.categories.gzdt = data.gzdt || [];
            this.categories.tzgg = data.tzgg || [];
            this.categories.kjcx = data.kjcx || [];
            this.categories.mtbd = data.mtbd || []; // 加载媒体报道数据
            this.categories.hktx = data.hktx || []; // 加载媒体报道数据
            this.$nextTick(() => {
              this.initSwiper(); // 数据加载完成后初始化 Swiper
            });
          },
          error: (xhr, status, error) => {
            console.error('获取数据失败:', error);
          }
        });
      },
      initSwiper () {
        new Swiper('#lb_02', {
          autoplay: {
            delay: 5000, // 5秒切换一次
          },
          loop: true, // 循环模式选项
          // pagination: {
          //   el: '#lb_02 .swiper-pagination',
          //   clickable: true,
          // },
          pagination: {
            el: '.m-lb .swiper-pagination',
            clickable: true,
            renderBullet: function (index, className) {
              return '<span class="' + className + '">' + '0' + (index + 1) + '</span>';
            },
          },

          navigation: {
            nextEl: '#lb_02 .swiper-button-next',
            prevEl: '#lb_02 .swiper-button-prev',
          },
        });
      },
      handleMouseEnter (index) {
        this.currentIndex = index; // 更新当前悬停的索引
      }
    },
    computed: {
      limitedTpxw () {
        // 返回前 5 条图片新闻数据
        return this.categories.tpxw.slice(0, 5);
      },
      limitedGzdt () {
        return this.categories.gzdt.slice(0, 5);
      },
      limitedTzgg () {
        return this.categories.tzgg.slice(0, 6);
      },
      limitedKjcx () {
        return this.categories.kjcx.slice(0, 3);
      },
      limitedMtbd () {
        return this.categories.mtbd.slice(0, 5);
      },
      limitedHktx () {
        return this.categories.mtbd.slice(0, 5);
      }
    }
  });
</script>

<script>
  $(function () {
    var mylb_03 = new Swiper('#lb_03', {
      autoplay: {
        delay: 5000, // 5秒切换一次
      },
      loop: true, // 循环模式选项
      pagination: {
        el: '#lb_03 .swiper-pagination',
        clickable: true,
      },
      navigation: {
        nextEl: '#lb_03 .swiper-button-next',
        prevEl: '#lb_03 .swiper-button-prev',
      },
    });

    var mylb_04 = new Swiper('#lb_04', {
      autoplay: {
        delay: 5000, // 5秒切换一次
      },
      loop: true, // 循环模式选项
      pagination: {
        el: '#lb_04 .swiper-pagination',
        clickable: true,
      },
      navigation: {
        nextEl: '#lb_04 .swiper-button-next',
        prevEl: '#lb_04 .swiper-button-prev',
      },
    });

    var mylb_xysh = new Swiper('#lb_xysh', {
      autoplay: {
        delay: 5000, // 5秒切换一次
      },
      loop: true, // 循环模式选项
      pagination: {
        el: '#lb_xysh .swiper-pagination',
        clickable: true,
      },
      navigation: {
        nextEl: '#lb_xysh .swiper-button-next',
        prevEl: '#lb_xysh .swiper-button-prev',
      },
    });
    $(".swiper-pagination-bullet").hover(function () {
      $(this).click();
    });


    var xyshTab = new Swiper('.m-xysh .right .swiper-container', {
      pagination: {
        el: '.m-xysh .right .swiper-pagination',
        clickable: true,
      },
      on: {
        slideChange: function () {
          var activeIndex = xyshTab.realIndex;
          $('.tab-item').removeClass('active').eq(activeIndex).addClass('active');
        },
      },
    });

    $('.tab-item').click(function () {
      var index = $(this).index();
      xyshTab.slideTo(index, 0, false);
    });

    var ztlmSwiper = new Swiper('.m-ztlm .swiper-container', {
      slidesPerView: 3,
      slidesPerGroup: 1,
      centeredSlides: true,

      loop: true,
      loopFillGroupWithBlank: true,
      pagination: {
        el: '.m-ztlm .swiper-pagination',
        clickable: true,
      },
      navigation: {
        nextEl: '.m-ztlm .swiper-button-next',
        prevEl: '.m-ztlm .swiper-button-prev',
      },
    });

    certifySwiper = new Swiper('#certify .swiper-container', {
      watchSlidesProgress: true,
      slidesPerView: 'auto',
      centeredSlides: true,
      loop: true,
      loopedSlides: 5,
      autoplay: true,
      navigation: {
        nextEl: '.swiper-button-next',
        prevEl: '.swiper-button-prev',
      },
      pagination: {
        el: '.swiper-pagination',
        //clickable :true,
      },
      on: {
        progress: function (progress) {
          for (i = 0; i < this.slides.length; i++) {
            var slide = this.slides.eq(i);
            var slideProgress = this.slides[i].progress;
            modify = 1;
            if (Math.abs(slideProgress) > 1) {
              modify = (Math.abs(slideProgress) - 1) * 0.3 + 1;
            }
            translate = slideProgress * modify * 260 + 'px';
            scale = 1 - Math.abs(slideProgress) / 5;
            zIndex = 999 - Math.abs(Math.round(10 * slideProgress));
            slide.transform('translateX(' + translate + ') scale(' + scale + ')');
            slide.css('zIndex', zIndex);
            slide.css('opacity', 1);
            if (Math.abs(slideProgress) > 3) {
              slide.css('opacity', 0);
            }
          }
        },
        setTransition: function (transition) {
          for (var i = 0; i < this.slides.length; i++) {
            var slide = this.slides.eq(i)
            slide.transition(transition);
          }

        }
      }

    })
  });
</script>